#include "StdAfx.h"
#include "Mechanism.h"
#include "Product.h"
#include <iostream>

using namespace std;

//constructor(void).
Mechanism::Mechanism(void)
{
	cout<<name<<" was created."<<endl;
}

//destructor.
Mechanism::~Mechanism(void)
{
	cout<<name<<" was destroy"<<endl;
}

//constructor with param-s.
Mechanism::Mechanism(char* name,int count):Product(name,count)
{
	this->name = name;
	this->count = count;
	cout<<name<<" with param-s was created"<<endl;
}

//print 2 values char*,int.
void Mechanism::print()
{
	cout<<"name = "<<name<<" count = "<<count<<endl;
}
